package com.daylightrobbery.server.packet.room;

import com.daylightrobbery.server.entity.Room;
import com.daylightrobbery.server.packet.type.DataPacket;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class ShowRoomListPacket implements DataPacket {

    private List<Room> roomList;
    private int type = 20004;

    public List<Room> getRoomList() {
        return roomList;
    }

    public ShowRoomListPacket setRoomList(List<Room> roomList) {
        this.roomList = roomList;
        return this;
    }

    @Override
    public DataPacket process() {
        return null;
    }

    @Override
    public int getType() {
        return type;
    }


}
